﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
String path = request.getContextPath();
String app_version = net.zoneland.greenleaf.GLOBAL.APP_VERSION;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>		
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=10;IE=9;IE=8;" />	
  		<!-- Title and other stuffs -->
  		<title>后台管理系统</title> 
  		<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
		<link rel="stylesheet" href="<%=path %>/css/greenleaf/bootstrap.css"/>
	 	<link rel="stylesheet" href="<%=path %>/css/greenleaf/font-awesome.css"/> 
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/jquery-ui.css"/> 
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/fullcalendar.css"/>
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/prettyPhoto.css"/>  
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/rateit.css"/>
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/bootstrap-datetimepicker.min.css"/>
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/jquery.cleditor.css"/> 
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/bootstrap-switch.css"/>
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/style.css"/>
	  	<link rel="stylesheet" href="<%=path %>/css/greenleaf/widgets.css"/>  
  		<!-- HTML5 Support for IE -->
  		<!--[if lt IE 9]>
  		<script src="<%=path %>/js/greenleaf/html5shim.js"></script>
  		<![endif]-->
  		<!-- JS -->
		<script src="<%=path %>/js/greenleaf/jquery-1.8.3.js"></script> <!-- jQuery -->
		<script src="<%=path %>/js/greenleaf/bootstrap.js"></script> <!-- Bootstrap -->
		<script src="<%=path %>/js/greenleaf/jquery-ui-1.9.2.custom.min.js"></script> <!-- jQuery UI -->
		<script src="<%=path %>/js/greenleaf/fullcalendar.min.js"></script> <!-- Full Google Calendar - Calendar -->
		<script src="<%=path %>/js/greenleaf/jquery.rateit.min.js"></script> <!-- RateIt - Star rating -->
		<script src="<%=path %>/js/greenleaf/jquery.prettyPhoto.js"></script> <!-- prettyPhoto -->
		<!-- jQuery Flot -->
		<script src="<%=path %>/js/greenleaf/excanvas.min.js"></script>
		<script src="<%=path %>/js/greenleaf/jquery.flot.js"></script>
		<script src="<%=path %>/js/greenleaf/jquery.flot.resize.js"></script>
		<script src="<%=path %>/js/greenleaf/jquery.flot.pie.js"></script>
		<script src="<%=path %>/js/greenleaf/jquery.flot.stack.js"></script>
		<!-- jQuery Notification - Noty -->
		<script src="<%=path %>/js/greenleaf/jquery.noty.js"></script> <!-- jQuery Notify -->
		<script src="<%=path %>/js/greenleaf/themes/default.js"></script> <!-- jQuery Notify -->
		<script src="<%=path %>/js/greenleaf/layouts/bottom.js"></script> <!-- jQuery Notify -->
		<script src="<%=path %>/js/greenleaf/layouts/topRight.js"></script> <!-- jQuery Notify -->
		<script src="<%=path %>/js/greenleaf/layouts/top.js"></script> <!-- jQuery Notify -->
		<!-- jQuery Notification ends -->
		<script src="<%=path %>/js/greenleaf/sparklines.js"></script> <!-- Sparklines -->
		<script src="<%=path %>/js/greenleaf/jquery.cleditor.min.js"></script> <!-- CLEditor -->
		<script src="<%=path %>/js/greenleaf/bootstrap-datetimepicker.min.js"></script> <!-- Date picker -->
		<script src="<%=path %>/js/greenleaf/bootstrap-switch.min.js"></script> <!-- Bootstrap Toggle -->
		<script src="<%=path %>/js/greenleaf/filter.js"></script> <!-- Filter for support page -->
		<script src="<%=path %>/js/greenleaf/custom.js"></script> <!-- Custom codes -->
		<script src="<%=path %>/js/greenleaf/charts.js"></script> <!-- Charts & Graphs -->
  		<!-- Script for this page -->
        <script type="text/javascript">
		var path = "<%=path %>";
		var app_version = "<%=app_version %>";
		
		$(function () {
			
			loadPage( path + "/pages/greenleaf/main.jsp" );
			
			$("#goto_mysite").click( function(){
				window.open("http://" + this.innerText );
			});
			
			$("#timer_info_list").click(function(){
				loadPage( path + "/pages/greenleaf/timer_info_list.jsp");				
			});
			
			$("#timer_runlog_list").click(function(){
				loadPage( path +  "/pages/greenleaf/timer_runlog_list.jsp");				
			});
			
			$("#sys_config_list").click(function(){
				loadPage( path +  "/pages/greenleaf/sys_config_info_list.jsp");
			});
			
			$("#sys_ehcache_monitor").click(function(){
				loadPage( path +  "/pages/greenleaf/sys_ehcache_monitor.jsp");
			});
			
			$("#ismc_userinfo_list").click(function(){
				loadPage( path +  "/pages/um/ismc_userinfo_list.jsp");
			});
			
			$("#ismc_roleinfo_list").click(function(){
				loadPage( path +  "/pages/um/ismc_roleinfo_list.jsp");
			});

			
			
		});
		
		function loadPage(url, fn){
			if(fn){
				$("#main_div").load(url, fn);
			}else{
				$("#main_div").load(url);
			}
		}
		
		function checkbox_control(select_all, checkbox_name){
			$("input[name='"+checkbox_name+"']").attr('checked', $(select_all).is(':checked'))
		}
		
		function checkbox_get_selected_id(checkbox_name){
			var selectids = "";
			var id_array = [];
			$("input[name='"+checkbox_name+"']").each(function(){
				if (true == $(this).attr("checked") || "checked" == $(this).attr("checked")) {
					if($.inArray(this.id, id_array) == -1){
				        if(selectids == ""){
							selectids += this.id;
						}else{
							selectids += ","+this.id;
						}
						id_array[id_array.length] = this.id;
					}
			    }
			});
			return selectids;
		}		
		</script>
</head>
<body>
	<div id="top_banner" class="navbar navbar-fixed-top bs-docs-nav" role="banner">
		<div class="conjtainer">
			<!-- Navigation starts -->
			<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
				<!-- Links -->
				<ul class="nav navbar-nav pull-right">
					<li class="dropdown pull-right"><a data-toggle="dropdown"
						class="dropdown-toggle" href="#"> <i class="icon-user"></i> 管理员
							<b class="caret"></b>
					</a> <!-- Dropdown menu -->
						<ul class="dropdown-menu">
							<li><a href="#"><i class="icon-user"></i> 资料</a></li>
							<li><a href="#"><i class="icon-cogs"></i> 设置</a></li>
							<li><a href="login.jsp"><i class="icon-off"></i> 退出</a></li>
						</ul></li>
				</ul>
			</nav>
		</div>
	</div>
	
	<!-- Header starts -->
    <header id="header">
	  	<div class="container">
	      <div class="row">
	
	        <!-- Logo section -->
	        <div class="col-md-4">
	          <!-- Logo. -->
	          <div class="logo">
	            <h1><a href="#">后台管理系统<span class="bold"></span></a></h1>
	            <p class="meta">Administrator Platform</p>
	          </div>
	          <!-- Logo ends -->
	        </div>
	      </div>
	    </div>
  	</header>
<!-- Header ends -->

<!-- Main content starts -->
<div class="content">
  	<!-- Sidebar -->
    <div class="sidebar">
        <ul id="nav">
          <li><a href="<%=path %>" class="open"><i class="icon-home"></i> 首页</a></li>
          
          <li class="has_sub">
          		<a href="#">
		          	<i class="icon-time"></i>定时任务管理  
		          	<span class="pull-right">
			          	<i class="icon-chevron-right"></i>
		          	</span>
	          	</a>
	            <ul>
		              <li><a href="javascript:void(0);" id="timer_info_list">任务信息</a></li>
		              <li><a href="javascript:void(0);" id="timer_runlog_list">执行日志</a></li>
	            </ul>
          </li>
          <li class="has_sub">
          		<a href="#">
		          	<i class="icon-user-md"></i>用户权限管理  
		          	<span class="pull-right">
			          	<i class="icon-chevron-right"></i>
		          	</span>
	          	</a>
	            <ul>
		              <li><a href="javascript:void(0)" id="ismc_userinfo_list">用户信息管理</a></li>
		              <li><a href="javascript:void(0)" id="ismc_roleinfo_list">用户角色管理</a></li>
		              <li><a href="javascript:void(0)" id="sys_workflow_permission_list">流程发起权限管理</a></li>
	            </ul>
          </li>
          <li class="has_sub">
          		<a href="#">
		          	<i class="icon-plus"></i>系统配置管理  
		          	<span class="pull-right">
			          	<i class="icon-chevron-right"></i>
		          	</span>
	          	</a>
	            <ul>
		              <li><a href="javascript:void(0)" id="sys_config_list">配置管理</a></li>
		              <li><a href="javascript:void(0)" id="sys_ehcache_monitor">缓存管理</a></li>
	            </ul>
          </li>
        </ul>
    </div>
    <!-- Sidebar ends -->

  	<!-- 这里LOAD其他的页面 main.jsp -->
  	<div id="main_div" ></div>

   <!-- Mainbar ends -->
   <div class="clearfix"></div>

</div>
<!-- Content ends -->
<!-- Footer starts -->
<footer>
  <div class="container">
    <div class="row">
      <div class="col-md-12">
            <p class="copy">Copyright &copy; 2012 | <a id="goto_mysite" href="javascript:void();">greenleaf.zoneland.net</a> </p>
      </div>
    </div>
  </div>
</footer>
<!-- Footer ends -->

<!-- Scroll to top -->
<span class="totop"><a href="#"><i class="icon-chevron-up"></i></a></span>
</body>
</html>